package cl.minvu.catastro.model;

import java.io.Serializable;
import java.math.BigInteger;

import javax.persistence.*;


/**
 * The persistent class for the INSTALACION_DOMICILIARIA database table.
 * 
 */
@Entity
@Table(name="INSTALACION_DOMICILIARIA")
@NamedQuery(name="InstalacionDomiciliaria.findAll", query="SELECT i FROM InstalacionDomiciliaria i")
public class InstalacionDomiciliaria implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue
	@Column(name="IDINSTALACIONDOMICILIARIA")
	private BigInteger idinstalaciondomiciliaria;

	//bi-directional many-to-one association to TipoInstalacion
	@ManyToOne
	@JoinColumn(name="IDTIPOINSTALACION")
	private TipoInstalacion tipoInstalacion;

	//bi-directional many-to-one association to Detalleinstalaciondomiciliaria
	@ManyToOne
	@JoinColumn(name="IDDETALLEINSTALACIONDOMICILIARIA")
	private Detalleinstalaciondomiciliaria detalleinstalaciondomiciliaria;

	//bi-directional many-to-one association to Ficha
	@ManyToOne
	@JoinColumn(name="IDFICHA")
	private Ficha ficha;

	public InstalacionDomiciliaria() {
	}

	public BigInteger getIdinstalaciondomiciliaria() {
		return this.idinstalaciondomiciliaria;
	}

	public void setIdinstalaciondomiciliaria(BigInteger idinstalaciondomiciliaria) {
		this.idinstalaciondomiciliaria = idinstalaciondomiciliaria;
	}

	public TipoInstalacion getTipoInstalacion() {
		return this.tipoInstalacion;
	}

	public void setTipoInstalacion(TipoInstalacion tipoInstalacion) {
		this.tipoInstalacion = tipoInstalacion;
	}

	public Detalleinstalaciondomiciliaria getDetalleinstalaciondomiciliaria() {
		return this.detalleinstalaciondomiciliaria;
	}

	public void setDetalleinstalaciondomiciliaria(Detalleinstalaciondomiciliaria detalleinstalaciondomiciliaria) {
		this.detalleinstalaciondomiciliaria = detalleinstalaciondomiciliaria;
	}

	public Ficha getFicha() {
		return this.ficha;
	}

	public void setFicha(Ficha ficha) {
		this.ficha = ficha;
	}

}